﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ButtonSave_Click(object sender, EventArgs e)
    {
        SqlDataSourceNwd.Insert();
        GridView1.DataBind();
        TextBoxCity.Text = "";
        System.Threading.Thread.Sleep(2000);
    }

    protected void Timer1_Tick(object sender, EventArgs e)
    {
        if (Image1.ImageUrl.Equals("~/contoso.gif"))
        {
            Image1.ImageUrl = "~/fabrikam.gif";
        }
        else
        {
            Image1.ImageUrl = "~/contoso.gif";
        }
    }
}
